package com.heihx.dto;

import com.heihx.entity.DishFlavor;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@Schema(description = "请求菜品数据时传递的数据模型")
public class DishDTO implements Serializable {

    @Schema(description = "主键值")
    private Long id;
    //菜品名称
    @Schema(description = "菜品名称")
    private String name;
    //菜品分类id
    @Schema(description = "菜品分类id")
    private Long categoryId;
    //菜品价格
    @Schema(description = "菜品价格")
    private BigDecimal price;
    //图片
    @Schema(description = "菜品图片")
    private String image;
    //描述信息
    @Schema(description = "菜品描述")
    private String description;
    //0 停售 1 起售
    @Schema(description = "菜品状态")
    private Integer status;
    //口味
    @Schema(description = "菜品口味")
    private List<DishFlavor> flavors = new ArrayList<>();

}
